package com.njlime.cms.repository.sys;

import com.njlime.cms.entities.MaterialsImage;
import com.njlime.cms.entities.MaterialsVoice;
import com.njlime.core.helper.PageBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * Created by Dean on 2017-7-27.
 */
public interface MaterialVoiceDao extends JpaRepository<MaterialsVoice, Integer>,JpaSpecificationExecutor<MaterialsVoice> {


    public PageBean getImageList(PageBean pageBean, int unitId, int groupId, String name);

    public void delImage(int id, int unitId);

    MaterialsVoice get(int id, int unitId);

    /**
     * 图片分组
     * @param id 图片id
     * @param groupId 分组id
     * @param unitId 单位id
     */
    public void editImageGroup(int id, int groupId, int unitId);
}
